﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;

namespace NodeBasedSkillEditor.Model.Node
{
    [Node(Category = DAGHelper.CateName_Execution, Name = "Evaluator")]
    [NodeTypeGroup(TypeGroupId = 1,
        AllowedTypes = new Type[] { typeof(bool), typeof(int), typeof(float), typeof(Vector2), typeof(Vector3), typeof(string), typeof(Enum) })]
    public class Node_Evaluator : NodeData
    {
        [Port(IOType = EPortIOType.Input)]
        public FlowPort In = new FlowPort();

        [Port(IOType = EPortIOType.Output)]
        public FlowPort Out = new FlowPort();

        [Port(IOType = EPortIOType.Input, TypeGroup = 1)]
        public ValuePort Value = new ValuePort();

        public override RT_Node BuildRuntimeNode(RT_DAG parentDAG)
        {
            return new RT.Node_Evaluator_RT(this, parentDAG);
        }
    }
}
